<?php

namespace app\api\validate\questions;

use think\Validate;

class UserExaminationType extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
	    'examination_type|考试类型' => 'require|number|>:0',
        'examination_section|考试学段' => 'require|number|>:0',
        'examination_discipline|考试学科' => 'require|number|>=:0',
        'examination_area|考试地区' => 'require|number|>:0',
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [];

    /**
     * 定义场景
     * @var []
     */
    protected $scene = [
        'setting' => ['examination_type','examination_section','examination_discipline','examination_area']
    ];
}
